# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/gentoo-sources/gentoo-sources-2.6.25.ebuild,v 1.2 2008/04/18 12:02:26 fmccor Exp $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="7"
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~amd64 ~x86"
IUSE=""
HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches http://www.kernel.org/pub/linux/kernel/people/edward/"

DESCRIPTION="Full Gentoo sources including reiser4 for the ${KV_MAJOR}.${KV_MINOR} kernel"

TARGET_KV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
REISER4_SRC="reiser4-for-${TARGET_KV}"
REISER4_URI="http://www.kernel.org/pub/linux/kernel/people/edward/reiser4/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${REISER4_SRC}.patch.bz2"

UNIPATCH_LIST="${DISTDIR}/${REISER4_SRC}.patch.bz2
${FILESDIR}/${TARGET_KV}/fs-symlink-write_begin-allocation-context-fix-reiser4-fix.patch"
UNIPATCH_STRICTORDER="yes"

SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${REISER4_URI}"

RDEPEND="${RDEPEND}
        >=sys-fs/reiser4progs-1.0.6"

K_EXTRAELOG="If there are issues with this kernel, please direct any
queries to the reiser-devel mailing list:
reiserfs-devel@vger.kernel.org"

pkg_postinst() {
	kernel-2_pkg_postinst
	einfo "For more info on this patchset, and how to report problems, see:"
	einfo "${HOMEPAGE}"
}
